package com.qujia.station.service;


import com.qujia.station.domain.CommodityManagement;
import com.qujia.station.domain.NonOilOrder;
import com.qujia.station.domain.OrderDetails;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Map;

/**
 * (NonOilOrder)表服务接口
 *
 * @author makejava
 * @since 2023-08-16 17:46:22
 */
public interface NonOilOrderService {

    /**
     * 分页查询
     *
     * @param nonOilOrder 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<NonOilOrder> queryByPage(NonOilOrder nonOilOrder, PageRequest pageRequest);

    List<NonOilOrder> query(NonOilOrder nonOilOrder);

    /**
     * 查询统计数据
     */
    Map<String,Object > getStatisticsData(NonOilOrder nonOilOrder);
    Map<String,Object > getTodayStatisticsData(NonOilOrder nonOilOrder);

    List<NonOilOrder> queryList(NonOilOrder nonOilOrder);
    /**
     * 新增数据
     *
     * @param nonOilOrder 实例对象
     * @return 实例对象
     */
    NonOilOrder insert(NonOilOrder nonOilOrder);

    /**
     * 修改数据
     *
     * @param nonOilOrder 实例对象
     * @return 实例对象
     */
    int update(NonOilOrder nonOilOrder);

    // 查询订单详情
    List<OrderDetails> selectListByOrderCode(String orderCode);

}
